<?php if(!defined('SABLOG_ROOT')) exit('Access Denied');?>
{template header}
<script type="text/javascript">
function checkform() {
	if (hj$('university') && hj$('university').value == "") {
		alert("请输入您的学校名.");
		return false;
	}
	if (hj$('school') && hj$('school').value == "") {
		alert("请输入您的院系.");
		return false;
	}
	if (hj$('team') && hj$('team').value == "")	{
		alert("请输入您的队伍名.");
		return false;
	}
	if (hj$('leader') && hj$('leader').value == "")	{
		alert("请输入您队伍的队长名.");
		return false;
	}
	if (hj$('cellphone') && hj$('cellphone').value == "")	{
		alert("请输入您的常用手机号.");
		return false;
	}
	if (hj$('email') && hj$('email').value == "")	{
		alert("请输入您的常用邮箱.");
		return false;
	}
	$('submit').disabled = true;
	return true;
}
</script>
	<div id="page">
    <h2 style="text-align:center; margin-top:10px;">您好,请填写以下信息报名参赛</h2>
	<form onsubmit="return checkform();" action="$options[url]post.php" method="post">
    <input type="hidden" name="formhash" value="$formhash" />
    <input type="hidden" name="action" value="reg" />
	<div class="form"><h2>学校名称：</h2><input type="text" size="20" class="formfield" id="university" name="university"  value="$_COOKIE[university]"/></div>
	<div class="form"><h2>院系名称：</h2><input type="text" size="26" class="formfield" id="school" name="school" value="$_COOKIE[school]"/></div>
	<div class="form"><h2>队伍名称：</h2><input type="text" size="40" class="formfield" name="team" id="team" value="$_COOKIE[team]"/></div>
    <div class="form"><h2>队长姓名：</h2><input type="text" size="12" name="leader" id="leader" class="formfield" value="$_COOKIE[leader]"/></div>
    <div class="form"><h2>常用手机号：</h2><input type="text" size="11" name="cellphone" id="cellphone" class="formfield" value="$_COOKIE[cellphone]"/></div>
    <div class="form"><h2>常用邮箱：</h2><input type="text" size="100" name="email" id="email" class="formfield" value="$_COOKIE[email]"/></div>
    <div class="form"><h2></h2><input type="submit" value="现在报名" name="submit"/></div>
    </form>
    </div>